package com.tianji.learning.mapper;

import com.tianji.learning.domain.po.PointsBoard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 Mapper 接口
 * </p>
 *
 * @author mytjxt
 * @since 2024-06-02
 */
public interface PointsBoardMapper extends BaseMapper<PointsBoard> {

    void createPointsBoardTable(@Param("tableName")String s);

    PointsBoard queryMyHistoryBoardRank(@Param("tableName")String tableName, @Param("userId") Long userId);

    List<PointsBoard> queryHistoryBoardRankList(@Param("tableName") String tableName, @Param("pageNo")Integer pageNo,
                                                @Param("pageSize")Integer pageSize);
}
